export default {
  watch: {
    chartData: {
      handler (newVal, oldVal) {
        if (newVal === '') return {}
        if (newVal !== oldVal) {
          this.initData()
        }
      },
      // 配置立即执行属性
      immediate: true,
      // 深度监控
      deep: true
    }
  }
}
